package com.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.beans.AdminInfo;

//管理员
public interface AdminDao extends JpaRepository <AdminInfo ,Integer>
{
	@Query(value="select * from adminInfo where adminname=?1 and password=?2",nativeQuery = true)
	AdminInfo  login(String adminName,String password);
}
